$(function(){
    // $('#form_group_yun_jieduan').hide();

    $("#type").change(function (){

                var val =  $(this).val();
                console.log(val)
                if(val==1){
                    console.log(231);
                    $('#form_group_canswer .col-xs-12').html(`
                <label class="css-input css-checkbox css-checkbox-primary css-checkbox-sm css-checkbox-rounded  ">
            <input type="checkbox" name="canswer[]" id="canswer0" value="0" checked=""><span></span> A        </label>
                <label class="css-input css-checkbox css-checkbox-primary css-checkbox-sm css-checkbox-rounded  ">
            <input type="checkbox" name="canswer[]" id="canswer1" value="1"><span></span> B        </label>
                <label class="css-input css-checkbox css-checkbox-primary css-checkbox-sm css-checkbox-rounded  ">
            <input type="checkbox" name="canswer[]" id="canswer2" value="2"><span></span> C        </label>
                <label class="css-input css-checkbox css-checkbox-primary css-checkbox-sm css-checkbox-rounded  ">
            <input type="checkbox" name="canswer[]" id="canswer3" value="3"><span></span> D        </label>`)
                }else{
                    $('#form_group_canswer .col-xs-12').html(
                        `<label class="css-input css-radio css-radio-primary css-radio-sm push-10-r  ">
            <input type="radio" name="canswer" id="canswer1" value="0" checked="">
            <span></span> A        </label>
                <label class="css-input css-radio css-radio-primary css-radio-sm push-10-r  ">
            <input type="radio" name="canswer" id="canswer2" value="1">
            <span></span> B        </label>
                <label class="css-input css-radio css-radio-primary css-radio-sm push-10-r  ">
            <input type="radio" name="canswer" id="canswer3" value="2">
            <span></span> C        </label>
                <label class="css-input css-radio css-radio-primary css-radio-sm push-10-r  ">
            <input type="radio" name="canswer" id="canswer4" value="3">
            <span></span> D        </label>`)

                                        
                }
         
              

    });
});
